/*
 * Copyright (c) 2017. danlu.com Co.Ltd. All rights reserved.
 */

package cn.com.dhc.danlu.activity.delivery.order.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import cn.com.dhc.danlu.R;


/**
 * @author: 李一方
 * @time: 2016-10-27 11:54
 * @mail: liyifang@danlu.com
 */
public class OrderMoreOperationBtn extends LinearLayout {
    private View rootView;
    private TextView tvOperation;

    public OrderMoreOperationBtn(Context context) {
        this (context, null);
    }

    public OrderMoreOperationBtn(Context context, AttributeSet attrs) {
        super (context, attrs);

        rootView = LayoutInflater.from (context).inflate (R.layout.view_order_more_operation_btn, this, true);
        tvOperation = (TextView) rootView.findViewById (R.id.tv_operation);
    }

    public void setOpname (int opName) {
        tvOperation.setText (opName);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    }
}
